import java.util.Scanner;

public class fenge {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		 
        String source = scanner.next();
      
        String[] sourceArray = source.split("/");
        for (int i = 0; i < sourceArray.length; i++) {
            System.out.println(sourceArray[i]);
        }
	}

}
